<div class="form">
	
	
<?php $form = $this
	->beginWidget('CActiveForm',
		array(
			'id' => 'user-form',
			'enableAjaxValidation' => false,
		));
?>

	<p class="note">带 <span class="required">*</span> 的是必填的哦！</p>

	

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model, 'username'); ?>
      		<?php echo $form
				  ->textField($model, 'username',
					  array(
						  'size' => 60,
						  'maxlength' => 255
					  ));
			  ?>
      		<?php echo $form->error($model, 'username'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model, 'password'); ?>
      		<?php echo $form
				  ->textField($model, 'password',
					  array(
						  'size' => 60,
						  'maxlength' => 255
					  ));
			  ?>
      		<?php echo $form->error($model, 'password'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model, 'active'); ?>
		<?php echo $form->textField($model, 'active'); ?>
      		<?php echo $form->error($model, 'active'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>
<?php $this->endWidget(); ?>

</div>
<!-- form -->
